/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package BLL;
import DAL.ThanhToanDAL;
import DTO.Thanhtoan;
/**
 *
 * @author Huong Giang
 */
public class ThanhToanBLL {
    public static boolean insertTT(Thanhtoan emp) throws Exception
    {
     boolean result = false;
        if (ThanhToanDAL.checkTTByCMT((emp.getCmt()))) {
            result = false;
        } else {
            result = ThanhToanDAL.insertTT(emp);

        }
        return result;
    }
    public static boolean updateTT(Thanhtoan emp) {
        if (ThanhToanDAL.checkTTByCMT(emp.getCmt())) {
            return ThanhToanDAL.updateTT(emp);
        } else {
            return false;
        }
    }
}
